<template>
   <div style="font-size: 12px;  line-height: 60px; display: flex">
       <div style="flex: 1; font-size: 20px">
           <span :class="collapseBtnClass" style="cursor: pointer" @click="collapse"></span>
       </div>
       <el-dropdown style="width: 540px; cursor: pointer;text-align: right">
           <span>{{nickname}}</span>
           <i class="el-icon-arrow-down" style="margin-left: 5px"></i>
           <el-dropdown-menu slot="dropdown">
<!--               <el-dropdown-item>个人信息</el-dropdown-item>-->
               <el-dropdown-item @click.native="exit">退出</el-dropdown-item>
           </el-dropdown-menu>
       </el-dropdown>
   </div>
</template>

<script>
    export default {
        name: "Header",
        props:{
            collapseBtnClass: String,
            collapse: Function,
            exit: Function,
            nickname:String
        },
    }
</script>

<style scoped>

</style>